import { meshLog } from "../config";

//传入id和是一个数组，找到这个ID下面对应的数据
export const getdataById = (id, data) => {
  let dataSetx = data
  if (data.length == 0) {
    return data
  } else {
    let meshIforSet = dataSetx.filter((item) => {
      if (item.message_id === id) {
        return item
      }
    })
    //meshLog("meshIforSet:", meshIforSet);
    return meshIforSet
  }

}
